import request from "@/utils/requestApp.js";


/**
 * 查询当前训练营
 * @param int userId 
 * 
 */
export function getCurrentBootcamp(data) {
	return request.get('/activity/page/getCurrentBootcamp', data, {
		noAuth: true,
	});
}

/**
 * 查询训练营课程安排
 * @param int userId  bootId
 * 
 */
export function getBootcampArrange(data) {
	return request.get('/activity/page/getBootcampArrange', data, {
		noAuth: true,
	});
}
/**
 * 获取阿里云直播凭证
 * @param int jieid 节id
 * 
 */
export function getPlayAuthMini(data) {
	return request.get('/ali/getPlayAuthMini', data, {
		noAuth: true,
	});
}
/**
 * 打开训练营中的某一个安排
 * @param int jieid 节id
 * 
 */
export function getBootcampHomework(data) {
	return request.get('/activity/page/getBootcampHomework', data, {
		noAuth: true,
	});
}
/**
 * 预约直播
 * @param String userId：用户id
 * String planId:计划id
 * 
 */
export function addBootcampZhiBoYuYue(data) {
	return request.get('/activity/page/addBootcampZhiBoYuYue', data, {
		noAuth: true,
	});
}

/**
 * 查询训练营列表
 * @param String userId：用户id
 * 
 * 
 */
export function getBootcampList(data) {
	return request.get('/activity/page/getBootcampList', data, {
		noAuth: true,
	});
}
/**
 * 打开训练营
 * @param String userId：用户id  bootId
 * 
 * 
 */
export function getBootcampData(data) {
	return request.get('/activity/page/getBootcampData', data, {
		noAuth: true,
	});
}